<%@ Page Language="C#" MasterPageFile="../MasterPages/StoreMaster.master" AutoEventWireup="true" Inherits="Codagenic.Store.Presentation.Web.Pages.BrandList" Title="Brands" %>
<%@ Register Src="../Controls/Product/ProductListControl.ascx" TagName="ProductList" TagPrefix="codagenic" %>
<%@ Import Namespace="Codagenic.Store.HttpModules" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h1><asp:Literal ID="ltlTitle" runat="server" /></h1>

    <asp:Repeater ID="rpBrands" runat="server" Visible="false" OnItemDataBound="rpBrands_ItemDataBound">
        <HeaderTemplate>
            <ul id="brands">
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <h3><%# Eval("Title") %></h3>
                <asp:Image ID="ctlImage" runat="server" Visible="false" />
                <%# Eval("Description") %> 
                <p><a href="<%# StoreUrlManager.BaseLinkUrl + Eval("UrlFriendlyTitle") %>.html">View products</a></p>
            </li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>

    <codagenic:ProductList ID="ctlProductList" runat="server"></codagenic:ProductList>

</asp:Content>
